/**
 * -----------------------------------
 * Copyright (c) 2021-2023
 * All rights reserved, Designed By www.linfeng.tech
 * 林风社交论坛商业版本请务必保留此注释头信息
 * 商业版授权联系技术客服	 QQ:  3582996245
 * 严禁分享、盗用、转卖源码或非法牟利！
 * 版权所有 ，侵权必究！
 * -----------------------------------
 */
package io.linfeng.modules.app.controller;

import io.linfeng.common.utils.Result;
import io.linfeng.modules.admin.entity.UserMenuEntity;
import io.linfeng.modules.admin.service.UserMenuService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;


/**
 * 用户菜单
 *
 * @author linfeng
 * @email 3582996245@qq.com
 * @date 2022-07-22 09:33:30
 */
@RestController
@RequestMapping("app/userMenu")
@Api(tags = "移动端——用户菜单")
public class AppUserMenuController {


    @Autowired
    private UserMenuService userMenuService;

    /**
     * 用户菜单列表查询
     */
    @GetMapping("/list")
    @ApiOperation("用户菜单列表查询")
    public Result<List<UserMenuEntity>> list(){
        List<UserMenuEntity> list = userMenuService.menuList();
        return new Result<List<UserMenuEntity>>().ok(list);
    }



}
